package com.qujia.station.config;

import com.qujia.station.Interceptor.OpenApiInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Resource
    private OpenApiInterceptor openApiInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(openApiInterceptor)
                .addPathPatterns("/syncOrder/**","/syncStation/**","/addEnterprise/**","/syncActivity/**","/syncUser/**","/syncCoupon/**","/syncYunHuaOrder/**",
                        "/station/order/anny/examinRefundSuccess/**","/customer/anny/card/refund/**");
    }


}
